﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace EFCore.Configers
{
    public class CPCConfigers : IEntityTypeConfiguration<CPC>
    {
        public void Configure(EntityTypeBuilder<CPC> builder)
        {
            builder.ToTable(nameof(CPC));
            builder.Property(x => x.AttributeKind).IsRequired(false).HasMaxLength(60);
            builder.Property(x => x.AttributeName).IsRequired(false).HasMaxLength(60);

            builder.HasData(new CPC()
            {
                PbcId = 1,
                AttributeKind = "国籍",
                AttributeName = "中国"
            },
             new CPC()
             {
                 PbcId = 2,
                 AttributeKind = "国籍",
                 AttributeName = "美国"
             }, new CPC()
             {
                 PbcId = 3,
                 AttributeKind = "民族",
                 AttributeName = "汉族"
             },
     new CPC()
     {
         PbcId = 4,
         AttributeKind = "民族",
         AttributeName = "回族"
     },
     new CPC()
     {
         PbcId = 5,
         AttributeKind = "宗教信仰",
         AttributeName = "无"
     },
     new CPC()
     {
         PbcId = 6,
         AttributeKind = "宗教信仰",
         AttributeName = "佛教"
     },
    new CPC()
    {
        PbcId = 7,
        AttributeKind = "政治面貌",
        AttributeName = "党员"
    },
    new CPC()
    {
        PbcId = 8,
        AttributeKind = "政治面貌",
        AttributeName = "群众"
    },
    new CPC()
    {
        PbcId = 9,
        AttributeKind = "教育年限",
        AttributeName = "12"
    },
    new CPC()
    {
        PbcId = 10,
        AttributeKind = "教育年限",
        AttributeName = "16"
    },
    new CPC()
    {
        PbcId = 11,
        AttributeKind = "学历",
        AttributeName = "本科"
    },
    new CPC()
    {
        PbcId = 12,
        AttributeKind = "学历",
        AttributeName = "大专"
    },
    new CPC()
    {
        PbcId = 13,
        AttributeKind = "专业",
        AttributeName = "生物工程"
    },
    new CPC()
    {
        PbcId = 14,
        AttributeKind = "专业",
        AttributeName = "计算机"
    },
    new CPC()
    {
        PbcId = 15,
        AttributeKind = "特长",
        AttributeName = "数据库"
    },
    new CPC()
    {
        PbcId = 16,
        AttributeKind = "特长",
        AttributeName = "java"
    },
    new CPC()
    {
        PbcId = 17,
        AttributeKind = "爱好",
        AttributeName = "篮球"
    },
    new CPC()
    {
        PbcId = 18,
        AttributeKind = "爱好",
        AttributeName = "舞蹈"
    },
    new CPC()
    {
        PbcId = 19,
        AttributeKind = "培训项目",
        AttributeName = "英语"
    },
    new CPC()
    {
        PbcId = 20,
        AttributeKind = "培训项目",
        AttributeName = "管理"
    },
    new CPC()
    {
        PbcId = 21,
        AttributeKind = "培训成绩",
        AttributeName = "A"
    },
    new CPC()
    {
        PbcId = 22,
        AttributeKind = "培训成绩",
        AttributeName = "B"
    },
    new CPC()
    {
        PbcId = 23,
        AttributeKind = "奖励项目",
        AttributeName = "技术攻关"
    },
    new CPC()
    {
        PbcId = 24,
        AttributeKind = "奖励项目",
        AttributeName = "销售绩效"
    },
    new CPC()
    {
        PbcId = 25,
        AttributeKind = "奖励等级",
        AttributeName = "A"
    },
    new CPC()
    {
        PbcId = 26,
        AttributeKind = "奖励等级",
        AttributeName = "B"
    },
    new CPC()
    {
        PbcId = 27,
        AttributeKind = "职称",
        AttributeName = "工程师"
    },
    new CPC()
    {
        PbcId = 28,
        AttributeKind = "职称",
        AttributeName = "经理"
    },
    new CPC()
    {
        PbcId = 29,
        AttributeKind = "职称",
        AttributeName = "助理"
    },
    new CPC()
    {
        PbcId = 30,
        AttributeKind = "职称",
        AttributeName = "教授"
    },
    new CPC()
    {
        PbcId = 31,
        AttributeKind = "职称",
        AttributeName = "讲师"
    },
    new CPC()
    {
        PbcId = 32,
        AttributeKind = "职称",
        AttributeName = "技术支持"
    },
    new CPC()
    {
        PbcId = 33,
        AttributeKind = "薪酬设置",
        AttributeName = "出差补助"
    },
    new CPC()
    {
        PbcId = 34,
        AttributeKind = "薪酬设置",
        AttributeName = "交通补贴"
    },
    new CPC()
    {
        PbcId = 35,
        AttributeKind = "薪酬设置",
        AttributeName = "住房补贴"
    },
    new CPC()
    {
        PbcId = 36,
        AttributeKind = "薪酬设置",
        AttributeName = "基本工资"
    },
    new CPC()
    {
        PbcId = 37,
        AttributeKind = "薪酬设置",
        AttributeName = "年终奖"
    },
    new CPC()
    {
        PbcId = 38,
        AttributeKind = "薪酬设置",
        AttributeName = "误餐补助"
    }

            );
        }
    }
}
